<?php
namespace app\validate;

use think\Validate;

class CheckCoursewareLabel extends Validate
{

    protected $rule =   [
        'title'  => 'require|length:2,30',
        'e_title'  => 'require|length:2,30',
    ];

    protected $message  =   [
        'title.require' => '请输入标签名称！',
        'title.length' => '标签名称在2-30个字符！',
        'e_title.require' => '请输入标签名称(EN)！',
        'e_title.length' => '标签名称(EN)在2-30个字符！',
    ];

}